<template>
  <div class="take">
    <div class="box" @click="jump('ErrandDeliveryInformation',0)">
      <div class="dian">发</div>
      <div class="text">
        <p>从哪里取货？</p>
        <p>点击填写发货信息</p>
      </div>
      <img src="../../../../static/img/youjiantou003.png" alt="">
    </div>
    <div class="box box2" @click="jump('ErrandDeliveryInformation',1)">
      <div class="dian dian2">收</div>
      <div class="text">
        <p>取货后送到哪里？</p>
        <p>点击填写收货信息</p>
      </div>
      <img src="../../../../static/img/youjiantou003.png" alt="">
    </div>
  </div>
</template>

<script>
  export default {
    name: "helpTake",
    data() {
      return {}
    },
    mounted() {
      this.$emit('test',1)
    },
    methods: {
      jump(page,type) {
        this.$router.push({
          name: page,
          query:{
            type
          }
        })
      }
    }
  }
</script>

<style scoped>
  .take {
    width: 100%;
    box-sizing: border-box;
  }

  .box {
    width: 100%;
    height: .8rem;
    display: flex;
    flex-flow: row;
    align-items: center;
    position: relative;
  }

  .box > img {
    width: .05rem;
    height: .1rem;
    position: absolute;
    right: 0;
  }

  .box2 {
    box-sizing: border-box;
    border-top: .01rem solid #EFEFEF;
  }

  .dian {
    width: .21rem;
    height: .21rem;
    color: #FFFFFF;
    text-align: center;
    line-height: .21rem;
    background: rgba(81, 81, 81, 1);
    border-radius: 50%;
    margin-right: .15rem;
    margin-left: .05rem;
    font-size: .12rem;
    font-family: PingFang SC;
    font-weight: 500;
  }

  .dian2 {
    background-color: #FF7611;
  }

  .text > p:nth-child(1) {
    font-size: .15rem;
    font-family: PingFang SC;
    font-weight: bold;
    color: #333333;
    margin-bottom: .1rem;
  }

  .text > p:nth-child(2) {
    font-size: .13rem;
    font-family: PingFang SC;
    font-weight: 500;
    color: #B5B5B5;
  }
</style>
